home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Extra 1996 #3 / AmigaPlus_CD-ROM-EXTRA_Nr.3.bin / aminet-spiele / role on / larn / makefile.pc < prev    next >
Makefile  |  1997-12-31  |  7KB  |  152 lines

  1. ############################################################################
  2. #
  3. # A list of available compile-time defines:
  4. #
  5. #   BSD           - use BSD specific features (mostly timer and signal stuff)
  6. #   BSD4.1        - use BSD4.1 to avoid some 4.2 dependencies (must be used with
  7. #                   BSD above; do not mix with SYSV)
  8. #   DECRainbow    - DEC Rainbow specific display code.
  9. #   DOCHECKPOINTS - if not defined, checkpoint files are periodically written
  10. #                   by the larn process (no forking) if enabled in the .larnopts
  11. #                   description file.  Checkpointing is handy on an unreliable
  12. #                   system, but takes CPU. Inclusion of DOCHECKPOINTS will cause
  13. #                   fork()ing to perform the checkpoints (again if enabled in
  14. #                   the .larnopts file).  This usually avoids pauses in larn
  15. #                   while the checkpointing is being done (on large machines).
  16. #   EXTRA         - incorporates code to gather additional performance stats
  17. #   FLUSHNO=#     - Set the input queue excess flushing threshold (default 5)
  18. #   HIDEBYLINK    - if defined, the program attempts to hide from ps
  19. #   MACRORND      - Define to use macro version of rnd() and rund() (fast & big)
  20. #   MAIL          - system supports mail messages (see bill.c).  Not useful on
  21. #                   non-networked machines.
  22. #   MSDOS         - MS-DOS specific code.
  23. #   OS2LARN       - OS/2 Specific code.  MSDOS must be defined.
  24. #   NONAP         - causes napms() to return immediately instead of delaying
  25. #                   n milliseconds.  This define may be needed on some systems
  26. #                   if the nap stuff does not work correctly (possible hang).
  27. #                   nap() is primarilly used to delay for effect when casting
  28. #                   missile type spells.
  29. #   NOVARARGS     - Define for systems that don't have varargs (a default
  30. #                   varargs will be used).
  31. #   RFCMAIL       - mail messages are RFC822 conformant.  Must be used with
  32. #                   MAIL above.
  33. #   SAVEINHOME    - put save files in users HOME instead of LARNHOME (default)
  34. #   SYSV          - use system III/V (instead of V7) type ioctl calls
  35. #   TIMECHECK     - incorporates code to disable play during working hours (8-5)
  36. #   UIDSCORE      - Define to use user id's to manage scoreboard.  Leaving this
  37. #                   out will cause player id's from the file ".playerids" to
  38. #                   be used instead.  (.playerids is created upon demand).
  39. #                   Only one entry per id # is allowed in each scoreboard
  40. #                   (winning & non-winning).
  41. #   VT100         - Compile for using vt100 family of terminals.  Omission of
  42. #                   this define will cause larn to use termcap.
  43. #   WIZID=xxx     - this is the userid (or playerid) of the wizard.  Default is
  44. #                   zero (superuser), which disables all wizard functions.
  45. #                   Players must have this userid (or playerid) in order to
  46. #                   become the non-scoring wizard player.  Definition of WIZID
  47. #                   to non-zero will enable the special wizard debugging
  48. #                   commands.  For root to become wizard, use WIZID= -1.
  49. #
  50. ############################################################################
  51. #
  52. # Configuration options
  53. #  LARNHOME is the directory where the larn data files will be installed.
  54. #  BINDIR is the directory where the larn binary will be installed.
  55. #
  56. LARNHOME = #    The current directory unless changed in larn.opt
  57. BINDIR = c:\games
  58. CC= tcc
  59. OPTIONS = -DSYSV -DMSDOS -DNOVARARGS
  60.  
  61. ########################################################################
  62. #
  63. OBJS= action.obj \
  64.     bill.obj \
  65.     config.obj \
  66.     create.obj \
  67.     data.obj   \
  68.     diag.obj   \
  69.     display.obj \
  70.     fgetlr.obj  \
  71.     fortune.obj \
  72.     global.obj  \
  73.     help.obj    \
  74.     iventory.obj\
  75.     io.obj      \
  76.     main.obj    \
  77.     monster.obj \
  78.     moreobj.obj \
  79.     movem.obj   \
  80.     msdos.obj   \
  81.     nap.obj     \
  82.     object.obj  \
  83.     regen.obj   \
  84.     savelev.obj \
  85.     scores.obj  \
  86.     signal.obj  \
  87.     spheres.obj \
  88.     spells.obj  \
  89.     store.obj   \
  90.     tgetent.obj \
  91.     tgetstr.obj \
  92.     tgoto.obj   \
  93.     tok.obj     \
  94.     tputs.obj   \
  95.     vms.obj
  96.  
  97. DOTFILES= larn.hlp larn.maz larn.ftn # larn.opt
  98.  
  99. # merge literal strings
  100. # large memory model
  101. # include file directory pointer
  102. # use extended memory during compile
  103. #
  104. FLAGS= $(OPTIONS) -d -ml -I\TCPP\INCLUDE -Qx
  105.  
  106. # case-sensitive link, no map file
  107. #
  108. larn: larn123.exe
  109. larn123.exe: $(OBJS)
  110.     tlink \TCPP\LIB\C0L @tlink.rsp, larn123,,\TCPP\LIB\EMU \TCPP\LIB\MATHL \TCPP\LIB\CL /c /x
  111.  
  112. .c.obj:
  113.     $(CC) -c $(FLAGS) $<
  114.  
  115. action.obj:   action.c   header.h larndefs.h monsters.h objects.h player.h
  116. bill.obj:     bill.c     header.h larndefs.h
  117. config.obj:   config.c   header.h larndefs.h
  118. create.obj:   create.c   header.h larndefs.h monsters.h objects.h player.h
  119. data.obj:     data.c     header.h            monsters.h objects.h
  120. diag.obj:     diag.c     header.h larndefs.h monsters.h objects.h player.h
  121. display.obj:  display.c  header.h larndefs.h            objects.h player.h
  122. fgetlr.obj:   fgetlr.c
  123. fortune.obj:  fortune.c  header.h
  124. global.obj:   global.c   header.h larndefs.h monsters.h objects.h player.h
  125. help.obj:     help.c     header.h larndefs.h
  126. iventory.obj: iventory.c header.h larndefs.h            objects.h player.h
  127. io.obj:       io.c       header.h larndefs.h
  128. main.obj:     main.c     header.h larndefs.h monsters.h objects.h player.h patchlev.h
  129. monster.obj:  monster.c  header.h larndefs.h monsters.h objects.h player.h
  130. moreobj.obj:  moreobj.c  header.h larndefs.h monsters.h objects.h player.h
  131. movem.obj:    movem.c    header.h larndefs.h monsters.h objects.h player.h
  132. msdos.obj:    msdos.c    header.h larndefs.h
  133. nap.obj:      nap.c
  134. object.obj:   object.c   header.h larndefs.h monsters.h objects.h player.h
  135. regen.obj:    regen.c    header.h larndefs.h monsters.h           player.h
  136. savelev.obj:  savelev.c  header.h larndefs.h
  137. scores.obj:   scores.c   header.h larndefs.h monsters.h objects.h player.h
  138. signal.obj:   signal.c   header.h larndefs.h
  139. spheres.obj:  spheres.c  header.h larndefs.h monsters.h objects.h player.h
  140. spells.obj:   spells.c   header.h larndefs.h monsters.h objects.h player.h
  141. store.obj:    store.c    header.h larndefs.h            objects.h player.h
  142. tgetent.obj:  tgetent.c
  143. tgetstr.obj:  tgetstr.c
  144. tgoto.obj:    tgoto.c
  145. tok.obj:      tok.c      header.h larndefs.h monsters.h objects.h player.h
  146. tputs.obj:    tputs.c
  147. vms.obj:      vms.c      header.h larndefs.h
  148.  
  149. install:
  150.     exepack larn123.exe $(BINDIR)\larn123.exe
  151.     exemod $(BINDIR)\larn123.exe /max 1
  152.